OpenInfrared
Initializes and sets the mode of the HiTechnic infrared seeker sensor
Contents
Syntax
OpenInfrared(port)
OpenInfrared(port, handle)
Description
OpenInfrared(port) initializes the input mode of HiTechnic infrared seeker sensor specified by the sensor port. The value port can be addressed by the symbolic constants SENSOR_1 , SENSOR_2, SENSOR_3 and SENSOR_4 analog to the labeling on the NXT Brick.
The last optional argument can be a valid NXT handle. If none is specified, the default handle will be used (call COM_SetDefaultNXT to set one).
Examples
OpenInfrared(SENSOR_4); [direction rawData] = GetInfrared(SENSOR_4); CloseSensor(SENSOR_4);
See also
GetInfrared, CloseSensor, NXT_LSGetStatus, NXT_LSRead
Signature
- Author: Linus Atorf (see AUTHORS)
- Date: 2008/09/25
- Copyright: 2007-2008, RWTH Aachen University